package com.onepiece.gen.admin.rcp.controller;


import com.onepiece.gen.admin.rcp.service.IPatientInfoService;
import com.onepiece.gen.frame.view.AjaxResult;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 患者信息表 前端控制器
 * </p>
 *
 * @author tangld
 * @since 2022-11-29
 */
@Slf4j
@RestController
@RequestMapping("/rcp/patientInfo")
@RequiredArgsConstructor
@Tag(name = "患者管理")
public class PatientInfoController {

    private final IPatientInfoService patientInfoService;

    @GetMapping("/getInfo")
    @Operation(summary="获取患者信息")
    public AjaxResult getInfo(){
        return AjaxResult.success(patientInfoService.list());
    }
}

